Skip to content

Conversation

@beatrycze-volk
Copy link
Collaborator

This check happens quiet often and in incoming PR (#878) will be added again so it is beneficial to make it in one place.

It also fixes in some places missing parts of check in ifs:

$this->document === null
|| $this->document->getDoc()->numPages < 1

Possible NULL on $this->document->getDoc()

It also fixes in some places missing parts of check in ifs
@sebastian-meyer sebastian-meyer self-requested a review February 5, 2023 16:55
@sebastian-meyer sebastian-meyer added ☇ bug A non-security related bug. ⟳ maintenance A task to keep the code up-to-date and manageable. labels Feb 5, 2023
@sebastian-meyer sebastian-meyer changed the title Simplify and unify check for doc existence [MAINTENANCE] Simplify and unify check for doc existence Feb 5, 2023
@sebastian-meyer sebastian-meyer merged commit 31dbff3 into kitodo:master Feb 5, 2023
@beatrycze-volk beatrycze-volk deleted the add-doc branch February 6, 2023 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

☇ bug A non-security related bug. ⟳ maintenance A task to keep the code up-to-date and manageable.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants